package xyz.ddlnt.mqutil.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置MQ消息转换器
 *
 * @author ZZULI_SE 210910
 * @data 2025/4/25 18:58
 */
@Slf4j
@Configuration
public class JsonConfig {
    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
